package com.sit.pojo;

import org.springframework.stereotype.Component;

import java.sql.Date;

@Component
public class borrow {
    private String readId;
    private String bookId;
    private Date borrowdate;
    private Date duedate;

    public borrow(){}
    public borrow(String readId,String bookId,Date borrowdate,Date duedate){
        this.readId = readId;
        this.bookId = bookId;
        this.borrowdate = borrowdate;
        this.duedate = duedate;
    }

    public void setReadId(String readId) {
        this.readId = readId;
    }

    public String getReadId() {
        return readId;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public Date getBorrowdate() {
        return borrowdate;
    }

    public void setBorrowdate(Date borrowdate) {
        this.borrowdate = borrowdate;
    }

    public Date getDuedate() {
        return duedate;
    }

    public void setDuedate(Date duedate) {
        this.duedate = duedate;
    }


    @Override
    public String toString() {
        return "borrow{" +
                "readId='" + readId + '\'' +
                ", bookId='" + bookId + '\'' +
                ", borrowdate=" + borrowdate +
                ", duedate=" + duedate +
                '}';
    }
}
